package com.zb.common.po.query;

import com.zb.common.po.enums.RoleStatus;
import com.zb.common.utils.SimplePage;

public class RoleQuery {
    private Integer roleId;
    private String roleName;
    private Integer pageNo;
    private SimplePage page;
    private int statusType;
    private RoleStatus status;

    public Integer getPageNo() {
        return pageNo;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
    }

    public SimplePage getPage() {
        return page;
    }

    public void setPage(SimplePage page) {
        this.page = page;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public RoleStatus getStatus() {
        return status;
    }

    public void setStatus(RoleStatus status) {
        this.status = status;
    }

    public int getStatusType() {
        return statusType;
    }

    public void setStatusType(int statusType) {
        this.statusType = statusType;
        this.status = RoleStatus.getStatusByType(statusType);
    }
}
